// index.js
// 获取应用实例
const app = getApp()

Page({
  data: {
    swiperList: [],
    catitems: [],
    floorList: [],
  },
  onLoad() {
    this.getswiperList()
    this.getCatitems()
    this.getfloorList()
  },
  // 获取轮播图
  getswiperList: async function () {
    let { data } = await wx.indexAPI.swiperData()
    console.log(data)
    this.setData({
      swiperList: data.message
    })
  },
    // 获取导航
    getCatitems:async function(){
        let {data} = await wx.indexAPI.getSwiperData()
        this.setData({
          catitems: data.message
        })
  },
    // 获取楼层
    getfloorList:async function(){
      let {data} = await wx.indexAPI.getFloorData()
      this.setData({
        floorList: data.message
      })
  }
})